package com.spring.cloud.service;

import com.spring.cloud.entity.Week01;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Component
public class ComputeClientHystrix implements ComputeClient {

    @Override
    public Week01 queryWeekByID(@RequestParam(value = "weekID") Integer weekID) {

        //吧异常信息记录到日志系统中，或者给用返回一个null


        return new Week01();
    }
}